package com.yl.auth.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yl
 * @since 2023-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class HuLao implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer lid;

    private Integer hid;

    private Integer jid;

    private LocalDateTime dengjiTime;

    private String name;

    @ApiModelProperty("药品数量")
    @TableField(exist = false)
    private Integer yaopinNumber;

    private String hname;

    private String jname;

    @TableField(value = "id")
    private Integer yid;

    @TableField(value = "name")
    private String yname;

    private String number;

    private LocalDate youxiaoTime;

    private String jiliang;

    private String fufa;

    @TableField(value = "id_number")
    private String idNumber;
    @TableField(value = "bed_id")
    private Integer bed_id;
    @TableField(value = "room_id")
    private Integer room_id;

    /**
     * 房间字段
     */
    @TableField(value = "id")
    private Long fid;
    @TableField(value = "room_no")
    private Integer roomNo;

    /**
     * 床位字段
     */
    @TableField(value = "id")
    private Long cid;
    @TableField(value = "bed_no")
    private String bedNo;

    private Integer status;

    /**
     * 房间床位拼接
     */
    private String chuang;
}
